<?php
$this->breadcrumbs = array(
    'Settings',
    'Site settings'
);
?>
<div class="box">
    <header>
        <h5><i class="icon"></i>Site settings</h5>
    </header>
    <div class="body">
        <form method="post">
            <div class="control-group">
                <label class="control-label">Site name</label>
                <div class="controls">
                    <input type="text" name="name" value="<?php echo isset($settings['name']) ? $settings['name'] : '' ?>" />
                </div>
            </div>

	    <div class="control-group">
                <label class="control-label">Send mail after signing up</label>
                <div class="controls">
		    <input type="radio" name="active_by_mail" value="1" <?php if (isset($settings['active_by_mail']) && $settings['active_by_mail']) echo "checked"; ?>>Active<br>
		    <input type="radio" name="active_by_mail" value="0" <?php if (!isset($settings['active_by_mail']) || (isset($settings['active_by_mail']) && $settings['active_by_mail'] == 0)) echo "checked"; ?>>De-active                   
                </div>
            </div>


	    <div class="control-group">
		<label class="control-label">Site logo (the resolution must be 211x44 px)</label>
		<div class="controls">
		    <?php
		    //set image
		    $this->widget('ext.elFinder.ServerFileInput', array(
			'name' => 'logo',
			'value' => isset($settings['logo']) ? $settings['logo'] : '',
			'connectorRoute' => '/filemanager/connector',
			    )
		    );
		    ?>
		    <p class="help-block">Click browse then select file or paste link from external</p>
		</div>
	    </div>


	    <div class="control-group">
		<label class="control-label">Favicon (it must be the "ico" file)</label>
		<div class="controls">
		    <?php
		    //set image
		    $this->widget('ext.elFinder.ServerFileInput', array(
			'name' => 'favicon',
			'value' => isset($settings['favicon']) ? $settings['favicon'] : '',
			'connectorRoute' => '/filemanager/connector',
			    )
		    );
		    ?>
		    <p class="help-block">Click browse then select file or paste link from external</p>
		</div>
	    </div>

	    <div class="control-group">
                <label class="control-label">Meta key</label>
                <div class="controls">
                    <input type="text" name="meta_key" value="<?php echo isset($settings['meta_key']) ? $settings['meta_key'] : '' ?>" />
                </div>
            </div>

	    <div class="control-group">
                <label class="control-label">Meta description</label>
                <div class="controls">
                    <input type="text" name="meta_description" value="<?php echo isset($settings['meta_description']) ? $settings['meta_description'] : '' ?>" />
                </div>
            </div>

	    <?php /**
	      <div class="control-group">
	      <label class="control-label">Site sologan</label>
	      <div class="controls">
	      <input type="text" name="sologan" value="<?php echo isset($settings['sologan']) ? $settings['sologan'] : '' ?>" />
	      </div>
	      </div>

	      <div class="control-group">
	      <label class="control-label">Site description</label>
	      <div class="controls">
	      <textarea name="description"><?php echo isset($settings['description']) ? $settings['description'] : '' ?></textarea>
	      </div>
	      </div>
	     */ ?>

            <div class="control-group">
                <label class="control-label">Uploading Size limit of monthly( bytes )</label>
                <div class="controls">
                    <input type="text" name="size_upload_limit" value="<?php echo isset($settings['size_upload_limit']) ? $settings['size_upload_limit'] : '' ?>" />
                </div>
            </div>

	    <div class="control-group">
                <label class="control-label">Uploading Size limit of Video( bytes )</label>
                <div class="controls">
                    <input type="text" name="size_video_upload_limit" value="<?php echo isset($settings['size_video_upload_limit']) ? $settings['size_video_upload_limit'] : '' ?>" />
                </div>
            </div>


            <div class="control-group">
                <label class="control-label">Receiving email (if you want to add more email, please enter to this box like: "email1@gmail.com, email2@gmail.com, ...")</label>
                <div class="controls">
                    <input type="text" name="admin_email" value="<?php echo isset($settings['admin_email']) ? $settings['admin_email'] : '' ?>" />
                </div>
            </div>	   	   

	    <?php
	    /*
	      <div class="control-group">
	      <label class="control-label">Facebook link</label>
	      <div class="controls">
	      <input type="text" name="facebook_link" value="<?php echo isset($settings['facebook_link']) ? $settings['facebook_link'] : '' ?>"/>
	      </div>
	      </div>

	      <div class="control-group">
	      <label class="control-label">Twitter link</label>
	      <div class="controls">
	      <input type="text" name="twitter_link" value="<?php echo isset($settings['twitter_link']) ? $settings['twitter_link'] : '' ?>"/>
	      </div>
	      </div>

	      <div class="control-group">
	      <label class="control-label">Vimeo link</label>
	      <div class="controls">
	      <input type="text" name="vimeo_link" value="<?php echo isset($settings['vimeo_link']) ? $settings['vimeo_link'] : '' ?>"/>
	      </div>
	      </div>
	     * 
	     */
	    ?>

    </div>

    <div class="form-actions">
	<?php $this->widget('bootstrap.widgets.TbButton', array('buttonType' => 'submit', 'type' => 'primary', 'label' => 'Submit')); ?>
    </div>
</form>
</div>
</div>